import request from '@/config/axios'
/**
 * 创建楼栋
 */
export const create = (data) => {
  return request.post({ url: '/bed/building-info/create', data })
}

/**
 * 更新楼栋
 */
export const update = (data) => {
  return request.put({ url: '/bed/building-info/update', data })
}

/**
 * 删除楼栋
 */
export const deleted = (id) => {
  return request.delete({ url: '/bed/building-info/deleted?id=' + id })
}

/**
 * 获取单个楼栋
 */
export const get = (id) => {
  return request.get({ url: '/bed/building-info/get?id=' + id })
}

/**
 * 分页查询楼栋
 */
export const query = (params) => {
  return request.get({ url: '/bed/building-info/query', params })
}

/**
 * 查询楼栋信息
 */
export const listQuery = () => {
  return request.get({ url: '/bed/building-info/list-query' })
}

/**
 * 查询房屋类型
 */
export const listQueryRoomType = () => {
  return request.get({ url: '/bed/building-info/list-query-room-type' })
}
